home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / gcl-1.000 / gcl-1 / gcl-1.0 / h / 386-linux.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-26  |  2.2 KB  |  110 lines

  1. #define BSD386
  2. #include "bsd.h"
  3. /* #include "386.h" */
  4. #undef HAVE_SIGVEC
  5. #undef RUN_PROCESS
  6.  
  7. #define ADDITIONAL_FEATURES \
  8.              ADD_FEATURE("BSD386"); \
  9.                ADD_FEATURE("MC68020")
  10.  
  11.  
  12. #define    I386
  13. #define    IEEEFLOAT
  14.        
  15.  
  16. #undef HAVE_XDR
  17.  
  18. #ifdef IN_UNIXSAVE
  19. #include <linux/user.h> 
  20. #endif
  21.  
  22. #define USE_ULONG_
  23.   
  24. #define USE_ATT_TIME
  25.  
  26. /* fix this later.   How to check for input */
  27. #undef LISTEN_FOR_INPUT
  28.  
  29. /* we dont need to worry about zeroing fp->_base , to prevent  */
  30. #define FCLOSE_SETBUF_OK 
  31.  
  32. /* #define DATA_BEGIN((TXTRELOC+header.a_text+(SEGSIZ-1)) & ~(SEGSIZ-1)); */
  33. #define DATA_BEGIN (char *)(char *)N_DATADDR(header);
  34.  
  35. /*
  36. #undef   FILECPY_HEADER
  37. #define FILECPY_HEADER \
  38.     if (header.a_magic == ZMAGIC) \
  39.         filecpy(save, original, PAGSIZ - sizeof(header)); \
  40.     filecpy(save, original, header.a_text);
  41. */
  42.  
  43. #define RELOC_FILE "rel_sun3.c"
  44.  
  45.  
  46.  
  47. #define LITTLE_ENDIAN
  48.  
  49. #define    PAGSIZ        (NBPG)
  50. #define    SEGSIZ        (NBPG * CLSIZE)
  51. #define    TXTRELOC    0
  52.  
  53. #define USE_DIRENT
  54. #define GETPATHNAME
  55. #define PATHNAME_CACHE    10
  56.  
  57.  
  58. /* try out the gnu malloc */
  59. /* #define GNU_MALLOC */
  60.  
  61. /* #define SIGPROTV SIGBUS */
  62. /* In my implementation I have put the address in code
  63.    Doubtless this will change in Xinu code.
  64.    
  65.  */
  66. #define GET_FAULT_ADDR(sig,code,sv,a) ((char *) code)
  67.  
  68. #define INSTALL_SEGMENTATION_CATCHER \
  69.        (void) signal(SIGSEGV,segmentation_catcher)
  70. /* if you are in an early version of linux without SIGBUS, uncomment
  71.    the next line */
  72. /* #define SIGBUS SIGSEGV */
  73. #define SIGSYS SIGSEGV
  74. #define SIGEMT SIGSEGV
  75.  
  76. /* get the fileno of a FILE* */
  77. #define FILENO(x) fileno(x)
  78.  
  79. #define ULONG_DEFINED
  80. #define NO_PROFILE
  81.  
  82. #define UNIXSAVE "unexlin.c"
  83.  
  84. #undef LD_COMMAND
  85. #define LD_COMMAND(command,main,start,input,ldarg,output) \
  86.   sprintf(command, "ld -d -S -N -x -A %s -T %x %s %s -o %s", \
  87.             main,start,input,ldarg,output)
  88.  
  89. /* Begin for cmpinclude */
  90. /* yes we have alloca */
  91. #define HAVE_ALLOCA
  92.  
  93.  
  94. /* NOTE: If you don't have the system call mprotect DON'T
  95.    define this.
  96.    I have added it to my own kernel.
  97.    */
  98.    
  99. /* #define SGC */
  100.  
  101. /* _setjmp and _longjmp exist on bsd and are more efficient
  102.    and handle the C stack which is all we need. [I think!]
  103.    
  104.  */
  105.  
  106.  
  107. /* End for cmpinclude */
  108.  
  109.  
  110.